﻿@model Applican.Models.Applicant
@{
  ViewBag.Title = "Изменение информации";
}
<h2>
  Изменение информации о соискателе</h2>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
@using (Html.BeginForm())
{
  @Html.ValidationSummary(true)
  <fieldset>
    <legend>Соискатель</legend>
    @Html.HiddenFor(model => model.ID)
    <div class="editor-label">
      Имя
    </div>
    <div class="editor-field">
      @Html.EditorFor(model => model.FirstName)
      @Html.ValidationMessageFor(model => model.FirstName)
    </div>
    <div class="editor-label">
      Фамилия
    </div>
    <div class="editor-field">
      @Html.EditorFor(model => model.SecondName)
      @Html.ValidationMessageFor(model => model.SecondName)
    </div>
    <div class="editor-label">
      Отчество
    </div>
    <div class="editor-field">
      @Html.EditorFor(model => model.MiddleName)
      @Html.ValidationMessageFor(model => model.MiddleName)
    </div>
    <div class="editor-label">
      E-mail
    </div>
    <div class="editor-field">
      @Html.EditorFor(model => model.EMail)
      @Html.ValidationMessageFor(model => model.EMail)
    </div>
    <p>
      <input type="submit" value="Save" />
    </p>
  </fieldset>
}
<div>
  @Html.ActionLink("Back to List", "Index")
</div>
